#include <stdio.h>
#include <stdlib.h>

void mallocMain(char*& c) {
	c = (char*)malloc(50);
	fgets(c, 50, stdin);
}

int main() {
	char* p = NULL;
	mallocMain(p);
	printf("%s", p);

	return 0;
}